import 'package:aidou/model/user.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

/// Describe 登录用户数据存储
/// Author END
/// DateTime 2022/07/15
class UserProviderModel with ChangeNotifier, DiagnosticableTreeMixin {
  UserModel _user;
  UserProviderModel(this._user);
  UserModel get user => _user;
  set user(UserModel value) {
    print(value);
    _user = value;
    notifyListeners();
  }

  void setUser(UserModel data) {
    _user = data;
    print(data);
    notifyListeners();
  }
}
